package com.kongge.main;

import android.content.Context;
import android.content.Intent;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.kongge.testaar.TestAARActivity;
import com.kongge.testjar.TestJarClass;

/**
 * Created by kongge on 2017/11/11.
 * description:
 * layoutid:
 */
public class TestClass {

    public void setTextView(TextView textView) {
        if (textView != null) {
            textView.setText("Test01!!!!!");
        }
    }

    public void setImageView(ImageView imageView) {
        if (imageView != null) {
            imageView.setImageResource(R.drawable.icon_twitter);
        }

    }

    public void test(Context context) {
        /*Intent intent = new Intent(context, TestAARActivity.class);
        context.startActivity(intent);*/

        TestJarClass testJarClass = new TestJarClass();
        Toast.makeText(context, testJarClass.getVersion(), Toast.LENGTH_SHORT).show();
    }
}
